﻿using System;
using System.Collections.Specialized;

namespace MyBatis.Data.Model
{
	/// <summary>
	/// Customers
	/// </summary>
	[Serializable]
	public class Customers : PaginationBase
	{	
		#region 属性
		/// <summary>
		/// Address
		/// </summary>
		public string Address
		{
			get;
			set;
		}

		/// <summary>
		/// City
		/// </summary>
		public string City
		{
			get;
			set;
		}

		/// <summary>
		/// CompanyName
		/// </summary>
		public string CompanyName
		{
			get;
			set;
		}

		/// <summary>
		/// ContactName
		/// </summary>
		public string ContactName
		{
			get;
			set;
		}

		/// <summary>
		/// ContactTitle
		/// </summary>
		public string ContactTitle
		{
			get;
			set;
		}

		/// <summary>
		/// Country
		/// </summary>
		public string Country
		{
			get;
			set;
		}

		/// <summary>
		/// CustomerID
		/// </summary>
		public string CustomerID
		{
			get;
			set;
		}

		/// <summary>
		/// Fax
		/// </summary>
		public string Fax
		{
			get;
			set;
		}

		/// <summary>
		/// Phone
		/// </summary>
		public string Phone
		{
			get;
			set;
		}

		/// <summary>
		/// PostalCode
		/// </summary>
		public string PostalCode
		{
			get;
			set;
		}

		/// <summary>
		/// Region
		/// </summary>
		public string Region
		{
			get;
			set;
		}
		#endregion		
	}
	
	public class CustomersQP : QPBase
	{	
		#region .ctor
        public CustomersQP()
        {
            PageSize = 10;
            SkipNum = 0;
			PageIndex = 1;
        }

	    #endregion
	    	
	    #region 属性
        		/// <summary>
		/// Address
		/// </summary>
		public string Address
		{
			set { this["Address"] = value; }
		}

		/// <summary>
		/// City
		/// </summary>
		public string City
		{
			set { this["City"] = value; }
		}

		/// <summary>
		/// CompanyName
		/// </summary>
		public string CompanyName
		{
			set { this["CompanyName"] = value; }
		}

		/// <summary>
		/// ContactName
		/// </summary>
		public string ContactName
		{
			set { this["ContactName"] = value; }
		}

		/// <summary>
		/// ContactTitle
		/// </summary>
		public string ContactTitle
		{
			set { this["ContactTitle"] = value; }
		}

		/// <summary>
		/// Country
		/// </summary>
		public string Country
		{
			set { this["Country"] = value; }
		}

		/// <summary>
		/// CustomerID
		/// </summary>
		public string CustomerID
		{
			set { this["CustomerID"] = value; }
		}

		/// <summary>
		/// Fax
		/// </summary>
		public string Fax
		{
			set { this["Fax"] = value; }
		}

		/// <summary>
		/// Phone
		/// </summary>
		public string Phone
		{
			set { this["Phone"] = value; }
		}

		/// <summary>
		/// PostalCode
		/// </summary>
		public string PostalCode
		{
			set { this["PostalCode"] = value; }
		}

		/// <summary>
		/// Region
		/// </summary>
		public string Region
		{
			set { this["Region"] = value; }
		}
		#endregion 
	}
}

